package city.spring.modules.oldman.repository;

import city.spring.modules.oldman.entity.ComplaintReceiverExtEntity;
import city.spring.modules.oldman.vo.ComplaintReceiverExtVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 存储库：投诉-受理人联系表
 *
 * @author pxm
 * @date 2020-07-20 16:56:39
 */
@Repository
public interface ComplaintReceiverExtRepository extends BaseMapper<ComplaintReceiverExtEntity> {
    /**
     * 获取投诉的受理人员列表
     *
     * @param complaintId
     * @return
     */
    List<ComplaintReceiverExtVO> getComplaintReceivers(String complaintId);


    /**
     * 获取方案的某个用户
     *
     * @param complaintId 排班方案ID
     * @param extId       主键ID
     * @return
     */
    ComplaintReceiverExtVO getComplaintReceiver(String complaintId, String extId);
}